package org.reactome.cytoscape.v3.internal;
import java.awt.event.ActionEvent;

import javax.swing.JOptionPane;

import org.cytoscape.application.*;
import org.cytoscape.application.swing.AbstractCyAction;
import org.cytoscape.application.swing.CySwingApplication;
import org.cytoscape.io.BasicCyFileFilter;
import org.cytoscape.io.CyFileFilter;
import org.cytoscape.model.CyNetworkManager;
import org.cytoscape.session.CySessionManager;
import org.cytoscape.util.swing.FileUtil;
import org.cytoscape.view.model.*;


public class GeneSetAnalysisAction extends FICytoscapeAction
{

    private static FileUtil fileUtil;
    private static CyFileFilter fileFilter;
    private CySwingApplication desktopApp;
    private CySessionManager sessionMgr;

    public GeneSetAnalysisAction(CySwingApplication desktopApp, CyNetworkManager netManager, CySessionManager sessionMgr)
    {
	//Default constructor for the "Gene Set/Mutant Analysis" menu
	super(desktopApp, netManager, fileUtil, fileFilter, "Gene Set/Mutant Analysis");
	setPreferredMenu("Apps.Reactome FIs");
	setMenuGravity(2.0f);
	this.desktopApp = desktopApp;
	this.sessionMgr = sessionMgr;
	
    }

    @Override
    public void actionPerformed(ActionEvent e)
    {
	//Check if a new session is being instantiated
	JOptionPane.showMessageDialog(this.desktopApp.getJFrame(), sessionMgr.getCurrentSessionFileName());
	
	
    }

}
